package com.leyou.dao.db2;

import com.leyou.domain.db1entity.ConditionAndGoods;
import com.leyou.domain.db3entity.LeyouCoupons;
import com.leyou.domain.db3entity.LeyouCouponsExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface LeyouCouponsMapper {
    long countByExample(LeyouCouponsExample example);

    int deleteByExample(LeyouCouponsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LeyouCoupons record);

    int insertSelective(LeyouCoupons record);

    List<LeyouCoupons> selectByExample(LeyouCouponsExample example);

    LeyouCoupons selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") LeyouCoupons record, @Param("example") LeyouCouponsExample example);

    int updateByExample(@Param("record") LeyouCoupons record, @Param("example") LeyouCouponsExample example);

    int updateByPrimaryKeySelective(LeyouCoupons record);

    int updateByPrimaryKey(LeyouCoupons record);


    int putLeyouCoupons(@Param("list") List<LeyouCoupons> leyouCouponsList);


    int selectSkuBySkuList(List<ConditionAndGoods> conditionAndGoodsList);

}
